package com.geek.jdbc.entity;

import java.sql.Blob;
import java.time.LocalDate;
import java.util.Date;

/**
 * @Desc TODO
 * @Author
 * @Date 2025/11/17
 */
public class Girl {

    private Integer id;
    private String name;
    private String sex;
    //private Date borndate;
    private LocalDate borndate;
    private String phone;
    private Blob photo;
    private Integer boyfriendId;

    //一对一
    //private Boy boy;

    public Girl() {
    }
    //需求3：根据手机号更新女生信息的构造函数
    public Girl(String name,String phone){
        this.name = name;
        this.phone = phone;
    }
    //需求4：根据ID删除女生信息的构造函数
    public Girl(Integer id){
        this.id = id;
    }

    public Girl( String name, String phone,Integer boyfriendId) {
        this.name = name;
        this.phone = phone;
        this.boyfriendId = boyfriendId;
    }

    public Girl(Integer id, String name, String sex, LocalDate borndate, String phone,Integer boyfriendId) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.borndate = borndate;
        this.phone = phone;
        this.boyfriendId = boyfriendId;
    }

    public Girl(Integer id, String name, String sex, LocalDate borndate, String phone, Blob photo, Integer boyfriendId) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.borndate = borndate;
        this.phone = phone;
        this.photo = photo;
        this.boyfriendId = boyfriendId;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return borndate
     */
    public LocalDate getBorndate() {
        return borndate;
    }

    /**
     * 设置
     * @param borndate
     */
    public void setBorndate(LocalDate borndate) {
        this.borndate = borndate;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return photo
     */
    public Blob getPhoto() {
        return photo;
    }

    /**
     * 设置
     * @param photo
     */
    public void setPhoto(Blob photo) {
        this.photo = photo;
    }

    /**
     * 获取
     * @return boyfriendId
     */
    public Integer getBoyfriendId() {
        return boyfriendId;
    }

    /**
     * 设置
     * @param boyfriendId
     */
    public void setBoyfriendId(Integer boyfriendId) {
        this.boyfriendId = boyfriendId;
    }

    public String toString() {
        return "Girl{id = " + id + ", name = " + name + ", sex = " + sex + ", borndate = " + borndate + ", phone = " + phone + ", photo = " + photo + ", boyfriendId = " + boyfriendId + "}";
    }
}
